package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.TruckMapper;
import com.bootdo.blog.domain.TruckDO;
import com.bootdo.blog.service.TruckService;



@Service
public class TruckServiceImpl implements TruckService {
	@Autowired
	private TruckMapper truckMapper;
	
	@Override
	public TruckDO get(Integer truckId){
		return truckMapper.get(truckId);
	}
	
	@Override
	public List<TruckDO> list(Map<String, Object> map){
		return truckMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return truckMapper.count(map);
	}
	
	@Override
	public int save(TruckDO truck){
		return truckMapper.save(truck);
	}
	
	@Override
	public int update(TruckDO truck){
		return truckMapper.update(truck);
	}
	
	@Override
	public int remove(Integer truckId){
		return truckMapper.remove(truckId);
	}
	
	@Override
	public int batchRemove(Integer[] truckIds){
		return truckMapper.batchRemove(truckIds);
	}
	
}
